javascript capitalize string

102

capitalize in javascript -

const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)

Comments

Submit
0 Comments